ne.
> Indeed, no need to show of the obvious
>
> \definebar
>[mybar]
>[backgroundbar]
>[height=\strutht,depth=\strutdp,offset=.250ex,color=red]
>
> [...]
That looks perfect, thanks!
-- Max
__
ct, thanks!
The "\definebar[...][inlined]" doesn't look quite right though -- the
issue that I'm having is that I can't figure out how to highlight across
both sides of an \alignhere without any questionable hacks. Unless the
new "inlined" does work across an \alignhere and I'm jus
Hi,
On Wed, Mar 13, 2024 at 11:37 AM Max Chernoff wrote:
>
> Hi Hans,
>
> On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote:
> > the next upload will support the attached ... so no ugly hacky code needed
>
> "\texthere[inbetween]" looks perfect, thanks
Hi Hans,
On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote:
> the next upload will support the attached ... so no ugly hacky code needed
"\texthere[inbetween]" looks perfect, thanks!
The "\definebar[...][inlined]" doesn't look quite right though -- the
issue that I'm
| www.pragma-ade.nl | www.pragma-pod.nl
-
inter-001.pdf
Description: Adobe PDF document
\definebar[mybar][inlined][offset=.25ex,color=red]
\starttext
\startformula
a \alignhere= b + c \breakhere
\myba
ry much for the upload and the tutorial on 'adaptive'. It seems
> very
> > impressive and right away, one application which I could think of in my
> case
> > is its use in denoting prosodic elements in verses (of poems). For this
> > purpose I was using \definebar, \setupbar so far t
and the tutorial on 'adaptive'. It seems very
impressive and right away, one application which I could think of in my case
is its use in denoting prosodic elements in verses (of poems). For this
purpose I was using \definebar, \setupbar so far to indicate certain types of
elements of verses; now I think
'adaptive'. It seems very
impressive and right away, one application which I could think of in my case
is its use in denoting prosodic elements in verses (of poems). For this
purpose I was using \definebar, \setupbar so far to indicate certain types of
elements of verses; now I think this being far more
copy the whole
\startuseMPgraphic and rename it for editing (to let’s say
rules:under:bardots), then do
\definebar[underbardot][undergraphic][mp=rules:under:bardots]
and play with the mp until you are happy with the output.
But the problem is that you have to create an “underbardot
t; (l. 327) Any hints how I could get this started?
>
> Yes, that is the right part to get started with. You could just copy the whole
> \startuseMPgraphic and rename it for editing (to let’s say
> rules:under:bardots), then do
>
> \definebar[underbardot][undergraphic][mp=ru
t copy the whole
\startuseMPgraphic and rename it for editing (to let’s say
rules:under:bardots), then do
\definebar[underbardot][undergraphic][mp=rules:under:bardots]
and play with the mp until you are happy with the output.
But the problem is that you have to create an “underbardot" that co
\setupinteraction[...style=\MyUrl...]` either it
> > doesn't work or displays a background which doesn't break well across
> > lines.
> > |
> >
> > |Is there a workaround or another method? Maybe a feature request for a
> > more customizable setup for references? I had the same problem so
across
lines.
|
|Is there a workaround or another method? Maybe a feature request for a
more customizable setup for references? I had the same problem some time
ago and I guess some others too.
\definebar
[urlbackground]
[color=yellow,
order=background,
continue=yes
Lukas/ConTeXt schrieb am 09.06.2020 um 20:28:
Hello,
it seems that bar (even with option 'continue=yes') is not rendered in place of
'~' within math. See the sample:
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes]
\starttext
1 + 2 = \startbar
Hello,
it seems that bar (even with option 'continue=yes') is not rendered in place of
'~' within math. See the sample:
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes]
\starttext
1 + 2 = \startbar[MyBar]3~kN\stopbar % OK
$1 + 2 = \startbar
>
> \setupbar[color=red,rulethickness=.3,offset=0.5]
According to https://wiki.contextgarden.net/Command/underbar, offset should
work.
Maybe \definebar behaves different to \setupbar
Hraban
___
If your question is
Hello,
it seems that bar (even with option 'continue=yes') is not rendered in
place of '~' within math. See the sample:
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes]
\starttext
1 + 2 = \startbar[MyBar]3~kN\stopbar
$1 + 2 = \startbar[MyBar
is probably:
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
I had that earlier, but unfortunately there is also the tag,
and this does not work the way I want:
%%%
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
\definebar[tacoover][method=1,dy=-0.4,offset=0.5,continue
> On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni wrote:
>
> I guess it works fine for me on beta 2019.01.07 16:10.
Thanks for testing. Sorry, I should have checked myself.
> On 15 Jan 2019, at 15:22, Hans Hagen wrote:
> works her ebut better is probably:
>
> \defin
, even for the first and last line.
Is there any way to have underlining + line breaks behave correctly?
(perhaps not using text backgrounds at all?)
My current code is attached.
works her ebut better is probably:
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
\starttext
Here
Florian Leupold <mailto:fleup...@posteo.net>
19. Oktober 2016 um 14:51
Dear list,
how can I clone \underbar (for the purpose of changing settings for
the clone afterwards)?
Just using \definebar to inherit \underbar’s properties does not
entirely work, see MWE:
\definebar[myBar][un
Dear list,
how can I clone \underbar (for the purpose of changing settings for the clone
afterwards)?
Just using \definebar to inherit \underbar’s properties does not entirely work,
see MWE:
\definebar[myBar][underbar]
\starttext
underbar text mode: \underbar{$a^b$}\crlf
underbar
cannot find a way of scaling the leading and trailing space to
equal 0.2 times the width of the text above the underbar.
MNWE:
\definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5]
\unexpanded\def\Clozed#1{\startbar[ClozedBar]
\zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1
and trailing space to equal 0.2
times the width of the text above the underbar.
MNWE:
\definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5]
\unexpanded\def\Clozed#1{\startbar[ClozedBar]
\zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1}\zwj\stopbar}
\starttext
\Clozed
of the text above the underbar.
MNWE:
\definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5]
\unexpanded\def\Clozed#1{\startbar[ClozedBar]
\zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1}\zwj\stopbar}
\starttext
\Clozed{\color[red]{CLOZE 1}} text text text text text
> On 04.09.16, at 16:28, Florian Leupold <fleup...@posteo.net> wrote:
>
>
>> On 04.09.16, at 14:14, Hans Hagen <pra...@wxs.nl> wrote:
>>
>> On 9/4/2016 12:03 PM, Hans Hagen wrote:
>>
>>> \definebar[ClozedBar][underbar][continue=yes]
&
> On 04.09.16, at 14:14, Hans Hagen <pra...@wxs.nl> wrote:
>
> On 9/4/2016 12:03 PM, Hans Hagen wrote:
>
>> \definebar[ClozedBar][underbar][continue=yes]
>>
>> \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}}
>>
>> \starttext
>>
>>
On 9/4/2016 12:03 PM, Hans Hagen wrote:
\definebar[ClozedBar][underbar][continue=yes]
\unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}}
\starttext
\input ward
\Clozed{\color[red]{CLOZE 1}}
\input ward
\Clozed{\quad\color[red]{CLOZE 2}\quad}
\input ward
\Clozed{\color[white]{x}\quad\color[red
r[green]{x}\quad\color[red]{CLOZE 4}\quad\color[white]{x}}
\input ward
space \underbar{\color[red]{CLOZE 5}\qquad\color[white]{x}} space
\input ward
\stoptext
I would greatly appreciate help with this problem.
\definebar[ClozedBar][underbar][continue=yes]
\unexpanded\def\Clozed#1{\ClozedBar{
=-.5]
\starttext
\underbar{Test this \high{\tfxx ®}}
\stoptext
The color keyword works, but offset doesn't seem to have any effect
even though it's listed in the reference.
I was able to address the second problem (adding more offset) with
something like
\definebar[BarU][offset=-0.7
offset?
The color keyword works, but offset doesn't seem to have any effect
even though it's listed in the reference.
I was able to address the second problem (adding more offset) with
something like
\definebar[BarU][offset=-0.7]
\startbar[BarU] ... \stopbar
but I wasn't able to get rid
the value of
RuleFactor)?
rulethickness
and, as you like challenges ...
\starttext
\startuseMPgraphic{overarrow}
drawarrow ((0,RuleFactor/2) -- (RuleWidth,RuleFactor/2))
withcolor RuleColor
withpen pencircle scaled RuleThickness ;
\stopuseMPgraphic
\definebar[overarrow] [mp
\definebar[urlbar][underbar]
\setupurl[style=\mono\urlbar,color=blue]
Interesting, thank you, Hans, it indeed works as expected. Could you
supplement this with some explanations, i.e. why this one works compared to
using plain `underbar'? I assume that the `color' key is overridden
}},
color={\urlparameter{color}},
]%
\from[#1]%
\endgroup
}
Is there a more natural way to make URLs appear in blue color including
maybe just:
\definebar[urlbar][underbar]
\setupurl[style=\mono\urlbar,color=blue
,
% rulethickness=1pt,
]
\starttext
text \strikethrough{text} text
\input ward
\startstrikethrough
\input ward
\stopstrikethrough
\input ward
\stoptext
Method 2:
\definebar
[strikethrough]
[method=0,
offset=0.6,
continue=yes,
% rulethickness=0.2,
]
\starttext
text \strikethrough
Hello,
in the following example the space before the leading quotation mark (between 'f'
and 'g') is not colored:
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes]
\starttext
\MyBar{Abc def \quotation{ghi}.}
\stoptext
How to make the bar
and
foregroupdstyle keys to \definebar? (Then, bars will be an appropriate and
versatile mechanism to define syntax highlighting regions).
Aditya___
If your question is of interest to others as well, please add an entry
foregroundcolor and
foregroupdstyle keys to \definebar? (Then, bars will be an appropriate
and versatile mechanism to define syntax highlighting regions).
maybe
Hans
-
Hans Hagen | PRAGMA ADE
\startmyBG \dorecurse{30}{bla }\stopmyBG bla bla
\stoptext
\starttext
\startbuffer
\definebar
[backbar]
[offset=1.5,rulethickness=2.4,color=blue,
continue=yes,order=background]
\definebar
[forebar]
[offset=1.5,rulethickness=2.4,color=blue,
continue=yes,order=foreground
On Thu, Feb 11 2010, Hans Hagen wrote:
\definebar
[backbar]
[offset=1.5,rulethickness=2.4,color=blue,
continue=yes,order=background]
Great, many thanks for this hidden feature!
What is the logic behind offset and rulethickness (the units and the
reference point)?
(I played a bit
On 11-2-2010 14:48, Peter Münster wrote:
On Thu, Feb 11 2010, Hans Hagen wrote:
\definebar
[backbar]
[offset=1.5,rulethickness=2.4,color=blue,
continue=yes,order=background]
Great, many thanks for this hidden feature!
What is the logic behind offset and rulethickness (the units
41 matches
Mail list logo